package com.xp.basic.heima.nio.netty.simpledemo.chat.message;

import lombok.Data;

@Data
public class LoginReuqestMessage extends Message {

    private String username;
    private String password;

    public LoginReuqestMessage(String username, String password) {
        this.username = username;
        this.password = password;
    }


    /**
     * 获取消息类型
     *
     * @return
     */
    @Override
    public int getMessageType() {
        return LoginRequestMessage;
    }
}
